'use strict';

angular.module('app.view-en.sidebar', [])

.controller('en-sidebarCtrl', ['$scope', '$state', '$window', function($scope, $state, $window) {
    $scope.$state = $state;
    $scope.getClass = function(viewType, pageType) {
        var typeUrl = viewType + '/' + pageType;
        return $window.location.hash.indexOf(typeUrl) !== -1 ? 'active' : '';
    };
    $('.ui.dropdown').dropdown({allowCategorySelection: true});
}]);